made sure pointers are initialized in constructors
updated readme