Do I have to follow the sample plugin instructions exactly or can I adapt to my own plugin?

You can customize no problem.
Please refer to the WordPress plugin guide in the Members area for instructions on how to customize.