created Source, SoureProfile and RftProfile classes
moved spireBands() into function, and added getCal() to some calcKxxx functions (otherwise it sometimes isn't run)