cleaned up the code, added code comments, and added a ROS parameter for activating/deactivating the sharpness computation together with the marker detection