comments

added comments for functions and key routines