added ifs for appending sys path and comments in settings