add some util functions

I add some util functions, shortcuts to daily routines like file operation, code generation...