deleted one useless comment
added all functions needed and implemented them. Untested
added all functions needed and implemented them. Untested