Add mod code and buildscript