Fix notice & slightly clean up send logic
Load config file before setting defaults for greater flexibility
Fix some potential notices