added some decoding logic
added .gitignore