Created PDF of the development document, added subroutine, cleared up mess.