Adds model and UI effects for scanning. Adds some tests to debug library.