added NuSpec and fixed a bunch of bugs