added the reaD and remove function
fixed the compiling broblems