Cleaned up code

Fixed AFK being too fussy
Added annotations for API section