point2dem: Sanity check and cleanup