added script to calculate voltages for different combinations of resistors
improved output
support for more/fewer than 4 resistors