First Working Code For Compas Module
cleaned up compass module