fixed some hlr bugs, added composer.json