cleanup

removed tmp directory, added .gitignore;
added encoding to writer.rb file since it contains a binary string;