code to extract the star trail lengths
small updates for usability