linting, finished updating the lib files
more linting and updating
things are pretty much internally consistent. TODO: write DB upgrade script. Make the required plugins