added funcontrol
added deamon
added readInt and writeInt
added struct