replaced code contracts with validation package. fixes #2
replaced NUnit with xUnit. closes #1