Update TM

 * Implement maximum operation count tolerance setting
 * Add support for comments in input files
 * Update tape auto-extending logic
 * Update input parsing logic

 * Update input files

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>