add if statment to clean function
define type integer, fix start function (create_thread) and add inflate_sqrt function