Framework Development 5 + Memleak fixes

More framework revision/cleanup, and fixed all existing memory leaks

If project fails to run, may require visual leak detector software (ask
if needed)