trimmed unused functions
Split into separate src files, replaced build script with Grunt