added license and cleaned up code, maybe need icon and tweak to work with callback server