The last updates

The final changes should be commited here, I am not sure if its a mess or not, but it contains a few more methods for some of the classes, a fix for the prayer, conditional sleeping