Extracted directives into a separate file.
Added path generation button.