Finish documentation and fix bug concerning adding a new class.