adding note names, minor optimizations in math
changed sampling mechanism to something not requiring a sort
removing sort code, cuts down a lot of executable size