core part finished

remained:
- more than 1 thread for decode process
- color card generator
- test code part