Multiple fixes and improvements

Replaces #18  target branch is now develop
implements #8 #15 #25 

I think i finally managed to get it right. Sorry for the build spam