reworked loader a lot and added a linear spectrum interpolater.  Also added many more comments for improved clarity.