Materials and Methods Provide enough information that any competent researcher can reproduce your experiments. That is not to say that he or she can reproduce your actual code, but he or she can figure out what you did and do something equivalent. Results Present what you observed. Graphs are nice. Discussion Discuss the implications of what you observed.
References Put in citations of any books or papers referred to.
Here you put in your code and such. Include at least one run with a small data set to show it works. Tell what others have done about the problem. State the purpose of your paper. Topical narrative Expand upon the topics relevant to your purpose.