Make throw new Error('function not implemented') more explicit, added function names