added version numbers
added database and misc. fixes/improvements
better edge case handling
versioning update
update functionality and adjustments