Implement Peer and Bootstrap Node better, fix some bug and model structure