Cleanup script

Added cleanup script, move base compile to sf