Documentation

Basic documentation of the main functions.