finnished up comments and from feedback I got from othr developers I have started to update comments for better understanding the functions, this is a work in progress and thus will be continously updated.