Fixed some bugs, added Swedish error messages