add TimeLine and Bar classes and minor other fixes