updated structure, separated & minfied scripts

fix #1 fix #2 fix #3