Mkdir and remove directory, Chtimes, and marshal error

Fixes from claudiofelber:master that were abandoned.

Kept the author the same, fixed nit pick, and go fmt'ed the changes.