refactored; added main.html layout and cleaned up extra files