Made the installer more robust and added a few formulae.

Updated README.md for new installation instructions.