Changed from object constructor to just a regular old function. Also got rid of null outputs

Changed from object constructor to just a regular old function. Also got rid of null outputs
I'm trying to come up with stuff to comment on but these all look good! Good job.