added transactions history and scheduling functions. fix #4 and fix #5