Improved error handling, and added support for "size" and "package" arguments. Removed deprecated runtest shell script.