Ab initio investigations of low Z materials under extreme conditions