Added some help and error checking. Added return values.