moved loading devtools package

Try to always load required packages at the top of your source code. 

That way users will see what packages they need at the beginning and can install them if necessary.