made changes to comments mainly

deleted unused functions