Linspace and logspace iterators implemented but not tested. Reseting feature for iterator added but not tested. Minor code improvements.