removed unncessary comment
refactored setFromInput and clearBlocks