Finished up 21,22,23,26. Added a couple functions to lib.