User correct function names
Add function used in an other script to M
Remove bug casuing init function
Add variable used in an other script to M