Big updates

Lots of bug fixes and added the code to install the command line tools