started adding some unit tests, ,any more needed.
Merge branch 'rayleigh' of https://github.com/ARGANS/TOUCAN into rayleigh