Most of script written to extract sunrise and sunset times