Project file cleanup, minor improvments in histogram handling