updated file creation.
updated xray reading out file.
updated xray writing to XrayManager arraylist