updated dist.ini and support files
tidied code