Added align directive and more exception handling

Added align directive to record declarations and more exception handling