minor changes

removed unused functions, added comments