module seperation and error messaging management initial commit.