Code formatting. Added temporary exit cases for debugging. Added items to the TODO list.