standardized output and comments. fixed solution