Added documentation where it was needed