Made functional, added date to header, added support for HEAD