fixed changes with code format, added functions to documentation