Works as chardev. Still lot's of things to cleanup