Add functions to M
Move more vraibles to M
Move function to M
Move function to M
Merge branch 'develop' of ssh://illarion.org:1010/scripts into develop