Multiply vector by double instead of int.
Changed logic of getting arguments.

Also changed multipling vector by double instead of int.