Added documentation + fixed typo