Initial commit.

Somewhat working. No error-handling and such.
Merge pull request #1 from daniel-star/initial-commit

Initial commit.