Deleted unused file
Deleted unused struct
Fixed variable scope bug

Also added ability to optimize with different inputs.