Lots of general fixing, improving sensor mob support and fixed AE support