fixing some compile errors
Impl isEmpty
Impl read
implement readAll