Moved GimSharp metadata to its own class. Some other minor fixes.