halfway done rewriting psi script
added modularization for modules and settings.
need to finish modularizing json and adding module loading