Fixed page scrolling
Improved back-end structure

Fixed error where two headers were being sent
Improved error reporting