Added Console application and WPF demo.

Implementation of #5 and #6.