Moving .m code around

Optimizing for matlab, translating to english