fixed memory leak (closes #3)

removed preferences window (unused)
dont use a variable for casting data
removed some incorrect UNUSED() statements
version bump
code cleanups