Nuclear Statistical Equlibrium and beyond - with medium corrections