Add Segments, add segments tests, fix counts tests, bump version
Release v0.4.0