fixed some smaller bugs and typos