Added documentation, some insignificant changes