Cleaned up histogram, final commit for bias code