Added some documentation, added new parameter able to enable/disable parts of algorithm