Change interface of analysis functions

Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>
Changed load functions API and refactored main UI

Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>