Added error and parameter checking
added auto dependency installation and server start