Fixed some inconsistencies
Added voltage regulation, some comments, and fixed other general bugs