final code v1.0, some pics, doc