moved code and documentation into sepperate folder.
fix bug
idea for input fix