Lots of refactoring. Removed hard-coded strings, moved things to resource file.

Added license

Added gitignore