Added documentation, previous one was not clear enough