added apt-get update at beginning
quoted all echos, semicoloned all line endings
conkatted (whoops)