fixed directory read % templates

directory read now works, templates are updated and short codes are
fixed.

This is just about the final version of the plugin.