Add class to encapsulate path.
Edit files to reflect introduction of new Path class.
Suppress unchecked cast warning.