added ability to set up custom logging, and split setting file to make easier to read
added log rotation and function for password prompt