Added BerkeleyParser and some methods to go with it