initial commit
TimeSpan is now used for calculating duration of the phone's sleep
syntactic and naming fixes