First stable version

needs some code cleaning, but works ;)