simplified initialisation, fixed flash version check to use the config
moved deploy folder