initialising all arrays with NaNs to ease debugging + some cleanups. Closes #30