refactored method doc parsing; added parsing of returns doc