Added IDEA files.
Added error handling.
Added tests and bumped version.