moved general functions at the beginning
added titles in the generated API documentation