Documentation and functions added

Added documentation to all core function as well as some new stuff that
could come in handy.