Fixed several issues. Added automatic nuget package download.