clean up code, add comments, add consistency to header guards, introduce dialogs.cpp & dialogs.h
can now create new dataitems through dialog