Fixed various bugs

Cleaned up code. No longer using BBSQW registers, back to SQW pin on
RTC.