Fixed #4, A example program is now included in the examples directory. Also adding "Fixed #2" since it was reopened by mistake. All fixed issues should be closed once the responsible commit has been merged with master branch.