Removed unused functions.
Initialize fields

Fixes valgrind error