Fixed 3 bugs, also some improvments such as deleting notes ect.