Fixed lots of bugs in coord.c