Change all printf to println; Fix error with string format.