Client.java:
1) Added handleing of files that are exactly 512 bytes

ErrorSim.java: