Added command line install and improved validation