Added tests, bugfixes, bootstrapified the UI