Added probability functions, moved methods around
Bugfixes, added a safe data retrieval method
Bugfixes, further additions