added specs; iolists everywhere; faster filtering with limits; some cleanup