added apt-get update and fixed indents