cleaning up sample more and added license
added mobile support