First real commit.
More tests, more functionality.
Added more tests and debug.