Input pins and voltage regulator added. Rev 6