Legendrevisions

@kalbermattenm please review and merge if ok