Added some functions and documentation to reduce warnings when compiling