Code cleanup
Used pickle instead of marshal (version indepentent and pure string output)
Added some more notes about security