A few simple changes

Hi, here are a few changes I made to your library as I was looking to see if it fit my needs.