Added test. Dashboard reworked. Fixed some bugs.