add test command interpreter
change build structure
fix problem with locks
add templates