fix algo probs
some algo changes
Merge branch 'development' of ssh://github.com/homerehab/Patient-Program into development