Added a sample project

Miner class makeover, numerous bugfixes and more.