updated readme with docs
added segment struct to worker