added headers and improved errors, also make json fit sparql specification