Added comments explaining the publically accesible api functions.