Added directory constants
improved forward function
Implemented basic ACL