extra option to main file
fixed multiple bugs in the PML