NERD002, refactored modal into it's own directive
NERD002, fixed formating and removed unused code
NERD005, merged in parts oe nerd-dev
NERD005, fixed main module