fixed funtions order
updated documentation