Finished funtionality for full pws input constructor

version 1 finished, still needs some comments added.