Proper documentation, optimized code