added plugin installer code, CPU measurement, code cleanup. won't compile as there are files missing from git