Fixes #5, adds a function to grab inbox data