Changed Marshal/Unmarshal to GobEncode/GobDecode
Some optimizations.