added comments for hardware library