Changed output format slightly + fixed coord bug