All data has to go thru their servers and they are selling the service, I doubt you can make a free app without being blocked by them sooner or later.
To see whattsapp protocol you can do with a MITM atack, and then analizing the capture in detail with wireshark, once you have a conversation captured in wireshark it will be in theory easy replicate the protocol.
Problem is , while reading the source code of Whatsapp , every sent message is encrypted with a key . didn't have the time to look into the key generation class or the en/decryption algo .
but MITM attacks won't work for sure , but worths the try