Initial commit of working code.

Have fun!