Improved typos, version, and added some basic parameter checking