Add support for JUSTIFY alignment

1. Add support for JUSTIFY alignment
2. Bug fixing