reorganize source code, add nuspec, codemaide cleanup