Added support for . and .. in paths. Added program clear.