Replaced explicit 7 with B
Added curve changing
Added function returning G
Added function returning G
Made code more generic for A nonzero