Added comments
Added comments and modified coord_source function
Added comments