Removed comments and unnecessary print statemetns