Made documentation more concise, slightly refactored