Updated area calculation function.
bug fix. right extracted coordinate was being limited by height instead of width.
Shuffled order for clarity.
Updated sanity check. Still doesn't match terribly well with these parameters, but it rejects bad matches pretty well.