remove extra semicolons
add file loading function
remove useless test program