Update preg_replace /e to preg_replace_callback
Add export functionality

- Fix issues with colorize undefined color code
- Put colorize and delete_dir in bootstrap