Added writeout() method to dump the locations out.

TODO check if output matches, theoretically the tostring should match,
as does the ordering
Merge branch 'master' of https://github.com/qmega/CMSC345-Rugle