Implemented first working version of the Headless library