Removed troubleshooting printf statements.
Made minor changes.