Added a new action for adding docs, made parsing more robust