Ee intgr

@spdin: merges of pull request 27, 28, 29, 30, 31 are reverted
@hendruw: motor lib was refined, take a look when you have time :)