Adding documentation for functions and readme