polishing

removed a few superfluous method calls. replaced manual string
splitting, and added comments