added analysis ready check and getting filename from parameters