this is an edited version of (Protoneer) library. i edit to work on the arduino mega2560 its working fine so far using the Arduino IDE.