multispot fitting functional, code reorganized, jp writeup added