Fixed exception when parsing XML with comments.

Added newline at the end of file

Fixed exception when parsing XML with comments
Switched to comment-removing parser instead of explicit check

Restored newlines between imports

Switched to comment-removing parser instead of explicit check
Merge pull request #74 from open-craft/master

Fixed exception when parsing XML with comments.