ringer now rings  multiple times instead of one long time
fixed some code formatting
Removed some whitespace from code