created BitDip class

class of bitdip functions
fix errors
Update invite code