added cache to minimize file system access on embedded devices
fixed a bug, where multiple midis were not played correctly by using cmd line