initial commit. This is some ugly code.
Merging initial github.