finish msg class and add general.java for general definition of whole
project