Added error handling of submitData
Added views for statistics and input of data
Make plot as block element

Fixes #1