fix rewrites for calendars; update lib_features; docs