added comments
added test for type definition
tested geometry