advancements in motion correction
bug fix in image derivative
added assertions to all the castget/castset classes to make things safer