Cleanup and added standard library for directcode