Remove threads, and added nested classes
error condition and constants
remove thread control and friendly class
change color when status indicate error
default use localhost