sfstest finally almost compiles. got rid of duplicate main. added fucntion definitions for