removed all constructor side effects; merged platform/ into peripheral/

also fixed several bugs in current & temp sensors