Added documentation and error in previous commit