Added source and example input file

Completed this a while ago, simply forgot to upload to repo