added sources
cleared up source code