Added res directory, math library and build.xml.