Added to Table Output; Updated & Added return values to all files (for good-coding purposes)

Added to output: pixel distances from nearest image edge in X & Y
Added/Updated return values - align with good coding practices.