Added framecontrol.c and test subdirectory