fix missed out error statement
removed unnecessary files
add potential analyzing funcitons