Fixing some things...

Sorry, I should have wrote tests first! I'll work on that next so that future commits can be validated. I was thinking Pester for a test framework. Or writing this in C# and testing using Xunit.