Fixing print statement formatting and method calls