Added documentation. Moved some classes.