All working finally

tuned code kit for work with mamp