Ported functions up to and including lselectfig();
- Code that needs review:
- - lcopyfigs() from lines 1474 -> 1484 (HTTP request for file reading)
- - lselectfig() from lines 1546 -> 1655 (GOTOs replaced with WHILE)