Solved minor problems and updated documentation