> Hi im trying to figure out how to generate sourcefiles from babel files and i keep getting the same error.

Tried putting a 'first headline' as it wants?
ie
* Dummy header
#+BEGIN_SRC emacs-lisp            
(defun org-xor (a b)
etc