Use a driver for a game which is "close" to the game you want to emulate as a starting point. Use this as a template for your own driver.
In a project like MAME any documentation never keeps up with the changes to the code. And what is even worse than no documentation is misleading documentation. I know that's a lame excuse. But this is a non-commercial project. Resources are scarce and devs prefer to focus on inventing new things instead of writing documentation in their spare time.