added message function

fixed tabs in echo