fixes a test and adds more tests
reorders the files
adds tests for helper and minor other changes
adds error handling for triang distribution and some general tests for the median/quantile