Updated several components

Updated various core functions
Reworked authentication
Better error handling