Add idea branching, fix #46