Functionality!

Added some comments and got most of the API calls working, also added
some basic handling for non int selections