fixed memory leak and error in delete, extended readme