calcRelEnt is functional, as tested on test.fa with matlab to help with the arithmatic.