Reorganizing code.
Got tests working, added meta analysis code to project.