Added new sample frequencies method and more unit tests