added trace log api and Command pattern image