added script
script modified to include beta compensation, resistance cancellation, ideality factor correction