Feature/application

Add a better application example, as well as a few fixes and improvements.