fix bugs in DataStore.parseTask
move all constants in Logic part to Constant
fix bugs in Task.toString and DataStore.parseTask and move all constants in Logic to Constant