small updates

removed unused functions and added comments