Bug fixes and other small changes
update star trail extraction code to mark end points