Fixed many bugs in ClassSerialiser.java and UpdateTask.java