use unsigned int
Moved OO distance checking after imaging, fix nm_to_A
Test huge box