(doc) added commnts to regexToRailroad file
(fix) regexToRailroad calls .format() before returning Diagram