Electron-electron correlation in beryllium and related properties