moved helper functions to helper module, added skeleton of validate_instrument