fixed errors and added documentation