implemented max probability calculation and updated documentation
moved unused function files to another folder; updated documentation