Implemented schema parsing

input is now handled by reading from files