Added files, cleaned up existing code, added cookie counter