Added position data to output

Thought you might be interested in this change. Didn't realise I changed the tab-spacing though, you might not want that...

Split up the Json construction too, just to be a bit more clear (and to avoid any problems with comma formatting)