Remove exception in Controller constructor

Fix #2
Add sanity check before inserting an Install
Return proper error code from main()