Changed the default directory statement to use rhe _directory.erb fragment.

Added `options` and `addhandlers` parameters to directories.
small changes after parser validation and lint
oops, {} around wrong variable instance.
tidy up the directory template fragment  a bit
wrong brackets