implemented reading node from binary file