made the private parts protected
Merge branch 'master' of ssh://github.com/mkawalec/pumas
corrected the serialize function