bug fixes and configuration file

Fixed bug in storage node, and added configuration file support