Added installer stuff and some code changes.