Initialization and input processing are all fine

Yay!

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

Really, is this overcomplicated? Send patches.

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