added photoemission code