The code for the edges is finally working(took longer than I expected), along with flaws(chips off the corners) and some higher level functions. The whole model was created in place by the script. Progress!