authentication working
added auth files
fixed numerous bugs