added LOS vector computation
remove print statements