cleaned up code. added to git.