Refactoring

Remove more auto keywords
Remove all unique_ptr keywords