added angle distance metri
conversion to sin and cosine
fixed python compatibility errors and now outputting filtered results