fixed null string error
removed debug printouts, cleaned up code