Fix race condition & code cleanup

*  Fix get/set date/time race condition
*  Update keywords.txt
*  Minor re-arranging of code + small fix
*  Add support for getting century value