Fixed xsd casting function code.
Removed unused import statements.
Refactored code into a SPARQLKit framework and a front end product for cli handling and endpoint setup.