Cleaned up some code.
Added Windows user interface.