add doc dir
added some regex BNFs
designing