Implemented method parsing. Relates to #72.