Updated apptools, new command line tools starting to take shape. Bugfixes.