Edited some docs
Fixed a bug