fixed error and added documentation