correctly handled inner class names, refactored code from string builder tostring, added methods to handle return types and param classes