Refactor the code

Move out the icon/png data to an external file and remove whitespace.
Add terminal-notifier support