refactored to get express working

  -also now have middleware working with use and public folder