unload = true param addition, cleaning up .m code, changed ranging to rangingError