Code refactored with new function for cell parameters
Cleanup of unused files
Changed the way the script accesses input and added a sample input file