update gitignore, change average method, add threading to metrics update