added initial code for time and alarm functions and completed initial build.