Several new functions

Added build restriction function
Added clear log function
Added extended start training command
Added trapdoor interaction function