Documentation of security service

Documents the security service and removes unnecessary code. This partially addresses #1.