Initial commit of full functional code.