Rewrite

Removed errors, simplified, made it stylable etc.
Merge pull request #4 from FokkeZB/master

Complete rewrite by FokkZB supporting Gitt.io and making the code clean.