Serialization code refactored. Small fixes
Timer code added, new command added, small refactoring.