Added some documentation for functions used in front-end