added Prepare module to create input vectors