Creates .m file with layer specified by user