Hey guys if you answer this question that I am keeping from months ill be happy. 

Does the actual bitcoin price depend on the mining profitability?
So is it more profitable mine when the price is high?
Is the same thing with other cryptos?
There is a bitcoin tab on github and I have heard that people can modify it, so why they modify it if they can't change the actual bitcoin code?