Added caching to classmethods parser

* added caching to classmethods parser
* added inheritance definition
* added definition file position