Change casting of np.array data type.

Was throwing errors later in code with optimize.leastsq
Added option to pass guesses and default guesses

Also changed optimize.leastsq input for less errorness
Add in peak fitting