Fix unchecked cast warning.
Add TinyLog library for logging.
closes #26.