header and footer added

header and footer have been aded and fixed a problem with inclusion of
files. Added session management.