edited file structure to divide web application and hardware code