- support hamamatsu
- added a small main test program