Added voltage correction, timer, meaningful comments, fixed random bugs