added a simple test and added a new tool for smooth addition to cubes.
fix bugs with indexing - I don't know why, but indexing with a boolean seems to disable inplace modification of numpy arrays