Added sanity checks and the possibility to install prerequisites