Finnished getFunctions() function, added importing packages