Refactored driver to character driver and also added most basic read and write methds.