updated grunt files to latest version of grunt
moving some of the methods to the core file
doing some refactory to make the library a little better