Fixed file processing and out putting
Fixed module loading, and showing template errors