Some restructuring of code done. Still not working.

1. To try out : Better initialization of input potentials.
2. Look out for any other bugs in the code