Add almost all code to a try-catch and show the exception message when any is thrown in the console
Add a bunch of new comments as well as detailed comments for SMART_ACTION_SET_GO_FLAG, SMART_ACTION_ADD_GO_FLAG and SMART_ACTION_REMOVE_GO_FLAG
Add detailed comments for all SMART_ACTION_*_POWER action types