Update functions

Optimalizations, and i'm not sure why there should be evals before the apt commands (untested)