Added basic list support, fixed many varied bugs.