Add docStrings and icon. Cleanup code.