light refactor + more info on alloc_id failure
fix spacing in resp (can fix rest in another PR)
Merge PR #52: light refactor + more info on alloc_id failure