added build file and modified some programs