Added messagebuffer and comments
Added comments for the parameters
changes