Refactoring of script-file

start to refactor the big script-file
into gem-schema
Tests

add a test file