refactoring, added END states
added some comments, combined buffer and string condition in #encode
small refactors in #encode for to make it a little easier to read
Merge branch 'master' of https://github.com/liamgriffiths/node-bencode
add END  state to tokenizer