Complete overwrite of old master branch. First working software prototype.