Cleaning up an extra resize and doing it in the initialization
Fixing two little bugs involving vector size and function argument