added ref.xrm, changed BNF dir to Ref