fixed file output name
updated / cleaned script