Extracted structs and added error handling
Improved code organization for fatsecret package