Use only double quotation marks
Wrap code in main()
Handle KeyboardInterrupt when reading from stdin
Add PKGBUILD