Adding pre-install script.
Adding some comments and formatting as well.