updated documentation, changed consts to static const ints
added constant for max/min coordinate
ints changed to shorts - u_int now refers to short as well