added format command, moved utils to util dir and fixed scirps