initial refactoring of code imbedded in another project
adding inital setup script