removed several bugs. output is good for solid sphere source