keep magic comments at the top of generated files
Merge pull request #30 from kemitchell/magic_comments

Keep magic comments at the top of generated files
Merged magic coding tests from kemitchell's commit