whitespace + doc
Implement library compilation again. Closes #733