Thought this might help others - my student could not publish functions in his library. The publish feature said he did not have the API documentation (he did). He was writing in text mode. We finally switched to block and noticed his function definitions were indented one space. Once we made the function definition left justified, the publish feature was able to recognize his functions and he was good to go. Hope that helps others if you are in the same situation!