Commented code and made it less embarrassing