Cleaned up library code from repository