Updated coding style.
Refactored RTC interface and implementation.
Added time commands to shell example.