Updated documentation, removed some app-specific logic from gem