added some remove outliers code - probably not working yet. Also made a new alignpoints method
alignPoints2 kinda works now