fixed typo in print statement.
fixed various errors