you dont need to modify the power store code for this, you can already do this in power tore using Simple options.
when editing a product in the power store admin section, Click the Add Product Options button, then select Add / Manage Simple Options.
on the Manage Simple Options Page, enter a name for the Option, when prompted for a default option, check the box to "Allow the User to enter a Value"